﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Web.Script.Serialization;
using System.Web.Security;
using TTJ.DataModel;

namespace TTJ.Service
{
    public class BaseService : IService
    {
        protected readonly string AppId = "UNKNOW";
        protected readonly string UrlBase = "UNKNOW";
        protected readonly string DownloadUrl = "UNKNOW";
        protected readonly string FROM = "UNKNOW";
        protected readonly int CountPerPage = 3;

        public BaseService(string appId, string urlBase, string downloadUrl, string from, int perPage)
        {
            this.AppId = appId;
            this.UrlBase = urlBase;
            this.DownloadUrl = downloadUrl;
            this.FROM = from;
            this.CountPerPage = perPage;
        }

        public virtual TagImageList GetImageList(string keywords, int page = 0, int pagesize = 0)
        {
            return null;
        }
    }
}
